<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Vue</title>
</head>
<body>
<div id="app">
    <p>{{msg}}</p>
    <p v-text="msg"></p>
    <p v-html="html"></p>
    <input type="text" v-model="msg" />
    <button v-on:click="textClick">测试</button>
</div>
<script src="./js/Dep.js"></script>
<script src="./js/Watcher.js"></script>
<script src="./js/Compiler.js"></script>
<script src="./js/Observer.js"></script>
<script src="./js/Vue.js"></script>
<script>
    var vm = new Vue({
        el: "#app",
        data: {
            msg: "hello",
            count: 100,
            person: {
                name: "Jack",
                age: 10
            },
            html: "<span style='color: red'>绑定html内容</span>"
        },
        methods: {
            textClick(e) {
                console.log(e)
                console.log(this)
            }
        }
    })
</script>
</body>
</html>